package com.ssy.lingxi.logistics.model.request;

import com.ssy.lingxi.logistics.api.validate.InEnum;
import com.ssy.lingxi.logistics.model.enums.CommonStatusEnum;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 无效/有效请求实体类
 *
 * @author yzc
 * @version 2.0.0
 * @date 2020/7/10
 */
@Data
public class CommonStatusRequest implements Serializable {

    private static final long serialVersionUID = 6388570134141610476L;

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空")
    private Long id;

    /**
     * 状态 0-无效 1-有效
     */
    @NotNull(message = "状态不能为空")
    @InEnum(value = CommonStatusEnum.class)
    private Integer status;
}
